using System.ComponentModel.DataAnnotations;

namespace Hospital.Domain
{
    /// <summary>
    /// 检查项目表
    /// </summary>
    public class CheckItem
    {
        /// <summary>
        /// 检查项目ID
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 检查项目名称
        /// </summary>
        [Required]
        [MaxLength(100)]
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 价格
        /// </summary>
        [Required]
        public decimal Price { get; set; }

        /// <summary>
        /// 检查目的
        /// </summary>
        [MaxLength(500)]
        public string? Purpose { get; set; }

        /// <summary>
        /// 检查前注意事项
        /// </summary>
        [MaxLength(1000)]
        public string? Precautions { get; set; }

        /// <summary>
        /// 项目类型ID
        /// </summary>
        [Required]
        public int TypeId { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; } = true;

        /// <summary>
        /// 排序顺序
        /// </summary>
        public int SortOrder { get; set; }

        /// <summary>
        /// 删除标记
        /// </summary>
        public bool IsDeleted { get; set; } = false;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdatedTime { get; set; }

        /// <summary>
        /// 导航属性：关联的项目类型
        /// </summary>
        public virtual CheckItemType? Type { get; set; }
    }
} 